package net.sync.disruptor.demo1;

import com.lmax.disruptor.ExceptionHandler;

/**
 * 异常处理事件类 https://blog.csdn.net/mawming/article/details/52582776
 */
public class MyHandlerException implements ExceptionHandler {

    /**
     * @param ex
     * @param sequence
     * @param event
     */
    @Override
    public void handleEventException(Throwable ex, long sequence, Object event) {
        System.out.println("MyHandlerException handleEventException...");
    }


    /**
     * @param ex
     */
    @Override
    public void handleOnStartException(Throwable ex) {
        System.out.println("MyHandlerException handleOnStartException...");
    }

    /**
     * @param ex
     */
    @Override
    public void handleOnShutdownException(Throwable ex) {
        System.out.println("MyHandlerException handleOnShutdownException...");
    }

}
